using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Sandia.MVCFramework.ViewManager
{
    /// <summary>
    /// A ToolStripButton that contains a ViewLayoutNode for reference when the
    /// button is clicked.
    /// </summary>
    public class ViewToolStripButton : ToolStripButton
    {
        /// <summary>
        /// The ViewLayoutNode for this button.
        /// </summary>
        private ViewLayoutNode node;

        /// <summary>
        /// Constructor for the button.
        /// </summary>
        /// <param name="node">
        /// The ViewLayoutNode for this button.
        /// </param>
        public ViewToolStripButton(
            ViewLayoutNode node)
            : base()
        {
            this.node = node;
        }

        /// <summary>
        /// The ViewLayoutNode for this button.
        /// </summary>
        public ViewLayoutNode Node
        {
            get { return this.node; }
            set { this.node = value; }
        }
    }
}
